//
//  Person.h
//  作业5
//
//  Created by dllo on 16/7/8.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Person : NSObject
@property (nonatomic,retain) NSString *name;
@property (nonatomic,retain) NSString *sex;
@property (nonatomic,assign) NSInteger age;
- (NSComparisonResult)compareAge:(Person *)anotherPerson;
- (NSComparisonResult)compareName:(Person *)anotherPerson;
- (NSComparisonResult)compareSex:(Person *)anotherPerson;
- (instancetype)initWithName:(NSString *)name
                         age:(NSInteger)age
                         sex:(NSString *)sex;
@end
